package designs.models.chainOfResponsibility;

public class Application {
	private Handler beijing,shanghai,tianjin;
	public void createChain() {
		beijing = new Beijing();
		shanghai = new Shanghai();
		tianjin = new Tianjin();
		beijing.setNextHandler(shanghai);
		shanghai.setNextHandler(tianjin);
	}
	
	public void responseClient(String number) {
		beijing.handlerRequest(number);
	}
	
	public static void main(String[] args) {
		Application application = new Application();
		application.createChain();
		application.responseClient("3332123655412548963");
	}
}
